package com.wh.aop;

import com.wh.vo.SysResult;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class AOPException {

    @ExceptionHandler({RuntimeException.class})
    public Object Exception(){
        return SysResult.fail();
    }

}
